﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ACPanel/AdminPage.master" AutoEventWireup="true"
    CodeFile="AddEditDattour.aspx.cs" Inherits="ACPanel_NodeTour_AddEditDattour" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="form-group">
        
    
    <%--<asp:FileUpload runat="server" ID="fileUpload1" />
    <asp:FileUpload runat="server" ID="fileUpload2" />
    <asp:FileUpload runat="server" ID="fileUpload3" />
    <asp:FileUpload runat="server" ID="fileUpload4" />
    <asp:FileUpload runat="server" ID="fileUpload5" />
    <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_OnClick" />
    <br />
    <asp:Label ID="Span1" runat="server"></asp:Label>--%>    
    <p><input class="btn btn-success" id="Button1" type="button" value="Add" onclick = "AddFileUpload()" /></p>    
    <div id = "FileUploadContainer">
        <!--FileUpload Controls will be added here -->
    </div>
    <br/>
    <p><asp:Button CssClass="btn btn-danger" ID="btnUpload" runat="server" Text="Upload" OnClick="btnUpload_OnClick" /></p>
    </div>
    <script type="text/javascript">
        var counter = 0;
        function AddFileUpload() {
            var div = document.createElement('DIV');
            div.innerHTML = '<input class="form-control" id="file' + counter + '" name = "file' + counter +
                     '" type="file" />' +
                     '<input class="btn btn-danger" id="Button' + counter + '" type="button" ' +
                     'value="Remove" onclick = "RemoveFileUpload(this)" />';
            document.getElementById("FileUploadContainer").appendChild(div);
            counter++;
        }
        function RemoveFileUpload(div) {
            document.getElementById("FileUploadContainer").removeChild(div.parentNode);
        }
    </script>
</asp:Content>
